// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Message from '@/package/Toast/src/Toast.js'
import Notification from '@/package/Notification/src/Notification.js'
// import Toast from './components/TopLoading'
// import {Button, Input, Dialog} from 'martin-ui'
// import {Button, Input, Dialog, Toast} from 'martin-ui'
// import MartinUi from '@/package'
// const {default: Notification} = await import('@/package/Notification/src/Notification.js')
import util from '@/util/util'
import axios from '@/server/axios'
import '@/assets/css/main.less'
import '@/assets/css/resource.less'
import '@/assets/font/iconfont.css'

// console.log(MartinUi)

Vue.config.productionTip = false

// console.log(Message)
Vue.use(Message)
Vue.use(Notification)
// Vue.use(Toast)
Vue.use(axios)
// Vue.use(Input)
// Vue.use(Button)
// Vue.use(Dialog)
// Vue.use(Toast)
// Vue.use(MartinUi)
Vue.use(util)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
